package com.ocom.mjrecode.controller;

import com.ocom.common.constant.MjRecodeUrl;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.recode.AccessRecordVo;
import com.ocom.common.vo.recode.AttendanceRecordVo;
import com.ocom.mjrecode.service.MjRecodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccessRecodeController {

	@Autowired
	private MjRecodeService mjRecodeService;

//	@PostMapping("/getAccessRecord")
	@PostMapping(MjRecodeUrl.URL_getAccessRecord)
	public Result GetAccessRecord(@RequestBody AccessRecordVo accessRecordVo){
		return mjRecodeService.GetAccessRecord(accessRecordVo);
	}

	@PostMapping(MjRecodeUrl.URL_getAttendanceRecord)
	public Result getAttendanceRecord(@RequestBody AttendanceRecordVo request){
		return mjRecodeService.getAttendanceRecord(request);
	}


}
